package com.yykj.user.center.server.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class ExhortItemForm {

    @ApiModelProperty(value = "药品名称", required = true)
    @NotEmpty(message = "药品名称 不能为空")
    private String name;

    @ApiModelProperty(value = "药品规格", required = true)
    @NotEmpty(message = "药品规格 不能为空")
    private String specs;

    @ApiModelProperty(value = "使用频率", required = true)
    @NotEmpty(message = "使用频率 不能为空")
    private String rate;

    @ApiModelProperty(value = "用法", required = true)
    @NotEmpty(message = "用法 不能为空")
    private String usaged;

    @ApiModelProperty(value = "用量", required = true)
    @NotEmpty(message = "用量 不能为空")
    private String phr;

    @ApiModelProperty(value = "数量", required = true)
    @NotNull(message = "数量 不能为空")
    @Min(value = 1,message = "数量不能为0")
    private Integer count;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "备注")
    private String remark;

}
